﻿using System;


namespace advadev.DataStorage
{

    /// <summary>
    /// Represents a xml file data storage
    /// </summary>
    sealed public class XmlFileDataStorage : DataStorageBase
    {

        /// <summary>
        /// Initializes a new instance of the XmlFileDataStorage class by the
        /// given parameter
        /// </summary>
        /// <param name="applicationKey">
        /// Application key
        /// </param>
        /// <param name="fileName">
        /// A file name string that references the file
        /// </param>
        /// <exception cref="ArgumentException">
        /// Will be thrown if the application key is empty or null
        /// </exception>
        /// <exception cref="ArgumentException">
        /// Will be thrown if the file name is not valid
        /// </exception>
        public XmlFileDataStorage(string applicationKey, string fileName)
            : base(applicationKey, new GenericEntityXmlFileDataStorage(fileName))
        {
        }

    }

}
